.content {
  width: 640px;
  height: 640px;
  background-color: rgb(252, 245, 245);
  /* border: 20px solid rgb(201, 84, 84); */
  position: relative;
  margin: 100px auto;
}

.btn {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: absolute;
}

.btn button {
  background: none;
  border: none;
  background-size: 100% 100%;

  cursor: pointer;
  outline: none;

  position: absolute;
  left: 50%;
  top: 50%;
}

.beginBtn button {
  width: 200px;
  height: 80px;
  background-image: url(./img/startImg.jpg);
  /* 让图片处于中间位置 */
  margin-top: -40px;
  margin-left: -100px;
}

.pauseBtn {
  display: none;
}

.pauseBtn button {
  width: 70px;
  height: 70px;
  background-image: url(./img/pauseImg.webp);
  margin-top: -35px;
  margin-left: -35px;
}

#snakeWrap {
  width: 600px;
  height: 600px;
  background: #225675;
  border: 20px solid #7dd9ff;
  position: relative;
}

/* #snakeWrap div {
  width: 20px;
  height: 20px;
} */

.snakeHead {
  background-image: url(./img/snakeHead.jpeg);
  /* 保持图片的横纵比并将图片缩放为完全覆盖背景定位区域的最小大小 */
  background-size: cover;
}

.snakeBody {
  background-color: rgb(3, 153, 3);
  border-radius: 50%;
}

.snakeFood {
  background-image: url(./img/food.jpg);
  background-size: cover;
}

